<template>
  <div>
    app根组件
    <hr />
    <!--此时的v-model是自定义指令,不是表单value值-->
    <!--v-model传值,并且是组件内唯一-->
    <Vmodel v-model="content"></Vmodel>
    <!-- <Vmodel v-model="say"></Vmodel> -->
    <hr />
    === app根组件获取子组件值:{{ value }}===
    <Vmodel @changetext="changetext"></Vmodel>
  </div>
</template>
<script>
import Vmodel from './model/model.vue'
export default {
  components: { Vmodel },
  name: '',
  data () {
    return {
      content: '内容987465',
      value: '',
      value1: ''
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    say () {
      console.log(123654987);
    },
    changetext (change) {
      console.log(change);
      this.value = change
    },
  }
}
</script>
<style lang='less'  scoped>
</style>
